<?php 
$catId = Yii::app()->request->getParam('id', 0);
$parentId = FrontendShopCategoryModel::model()->findByPk($catId)->parent_id;

?>
<div class="sb_box">
<h3>Sản phẩm</h3>
<div class="sbb-content">
	<ul class="topnav">
		<?php foreach($CategoryRoot as $key => $item):
			$link = Yii::app()->controller->createUrlProductCat($item['category_id']);
		?>
			<li class="root <?php if($parentId==$item['category_id']) echo 'active';?>"><a href="<?php echo $link;?>"><?php echo $item['title']?></a>
			<?php CommonHelper::getSubcategoryShop($item['category_id'], $catId);?>
		<?php endforeach;?>
	</ul>
</div>
</div>